package com.wcgksoft.entity.GreedLand;

import com.wcgksoft.entity.dataAnalysis.DepartProjectData;
import com.wcgksoft.entity.system.EnterpriseProject;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 * 项目名称：
 * 类名称：CodeGreenland
 * 类描述：绿地管理  管理端
 * 修改备注：
 * @version 
 * 
 */
@Entity
@Table(name="t_greenlandadministrator")
public class GreedLandAdministrator {

	/**
	 * id
	 */
	@Id
	@Basic(optional = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Integer id;
	
	/**
	 * 绿地名称
	 */
	@Column(name = "name", nullable = false, length = 50)
	private String name;
	
	/**
	 * 是否使用：0启用/1停用
	 */
	@Column(name = "state")
	private Integer state;

	/**
	 * 是否使用：0未使用/1使用中
	 */
	@Column(name = "isuse")
	private Integer isuse;
	/**
	 * 项目id
	 */

	@Column(name = "departid",length=60)
	private Integer departid;	

	/**
	 * 片区id
	 */

	@Column(name = "areaid",length=60)
	private Integer areaid;

	/**
	 * 企业id
	 */
	@Column(name = "enterpriseid", length = 100)
	private Integer enterpriseid;
	/**
	 * 项目
	 */
	@Transient
	private EnterpriseProject depart;

	/**
	 * 片区
	 */
	@Transient
	private EnterpriseProject area;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getDepartid() {
		return departid;
	}

	public void setDepartid(Integer departid) {
		this.departid = departid;
	}

	public Integer getAreaid() {
		return areaid;
	}

	public void setAreaid(Integer areaid) {
		this.areaid = areaid;
	}

	public EnterpriseProject getDepart() {
		return depart;
	}

	public void setDepart(EnterpriseProject depart) {
		this.depart = depart;
	}

	public EnterpriseProject getArea() {
		return area;
	}

	public void setArea(EnterpriseProject area) {
		this.area = area;
	}

	public Integer getIsuse() {
		return isuse;
	}

	public void setIsuse(Integer isuse) {
		this.isuse = isuse;
	}

	public Integer getEnterpriseid() {
		return enterpriseid;
	}

	public void setEnterpriseid(Integer enterpriseid) {
		this.enterpriseid = enterpriseid;
	}
}
